$(function(){
    option6 = {
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            data:['视频广告','直接访问','搜索引擎'],
            itemWidth: 30,
            itemHeight: 10,
            itemGap: 30,
            textStyle: {
                fontSize: 12,
                color: '#fff'
            }
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        xAxis: {
            type: 'category',
            boundaryGap: false,
            data: ['周一','周二','周三','周四','周五','周六','周日'],
            axisLine:{
                lineStyle:{color:'#fff'}  //y轴坐标轴颜色
               },
        },
        yAxis: {
            type: 'value',
            max: 1200,
            min: 0,
            splitLine: {
                show: true,
                lineStyle:{
                     width: 1,
                    type: 'dotted',
                  
                }
            },
            axisLine:{
                lineStyle:{color:'#fff'}  //y轴坐标轴颜色
               },
    
           
        },
        series: [
            {
                name:'视频广告',
                type:'line',
                stack: '总量',
                data:[150, 232, 201, 154, 190, 330, 410],
                itemStyle: {
                    normal: {
                        color: '#ff9700',
                        label: {
                            show: true,
                            position: 'top',
                            textStyle: {
                              color: 'white'
                        }
                     }
                        
                    }
                },
            },
            {
                name:'直接访问',
                type:'line',
                stack: '总量',
                data:[320, 332, 301, 334, 390, 330, 320],
                itemStyle: {
                    normal: {
                        color: '#b928ca',
                        label: {
                            show: true,
                            position: 'top',
                            textStyle: {
                              color: 'white'
                        }
                     }
                        
                    }
                },
           
            },
            {
                name:'搜索引擎',
                type:'line',
                stack: '总量',
                data:[82, 93, 90, 93, 100, 133, 320],
                itemStyle: {
                    normal: {
                        color: '#5ca3cc',
                        label: {
                            show: true,
                            position: 'top',
                            textStyle: {
                              color: 'white'
                        }
                     }
                        
                    }
                },
            }
        ]
    };
    var chart6 = echarts.init(document.getElementById("chart6"));
    chart6.setOption(option6);
    
    setInterval(function(){
        // $('#mb-overcome').css('width',($('.mb-long-hold').width()-40));
        $('#chart6').css('height',($('.chartBox1').height()))
        $('#chart6').css('width',($('.chartBox1').width()))
        chart6.resize();
    },200)
    
    
    // 帮扶单位工作量 折线图*
    option7 = {
       
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            data:['视频广告','搜索引擎'],
            itemWidth: 30,
            itemHeight: 10,
            itemGap: 30,
            textStyle: {
                fontSize: 12,
                color: '#fff'
            }
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        xAxis: {
            type: 'category',
            boundaryGap: false,
            data: ['周一','周二','周三','周四','周五','周六','周日'],
            axisLine:{
                lineStyle:{color:'#fff'}  //y轴坐标轴颜色
               },
        },
        yAxis: {
            type: 'value',
            max: 1800,
            min: 0,
            splitLine: {
                show: true,
                lineStyle:{
                     width: 1,
                    type: 'dotted',
                  
                }
            },
            axisLine:{
                lineStyle:{color:'#fff'}  //y轴坐标轴颜色
               },
    
           
        },
        series: [
            {
                name:'视频广告',
                type:'line',
                stack: '总量',
                data:[150, 232, 201, 154, 190, 330, 410],
                itemStyle: {
                    normal: {
                        color: '#ff9700',
                        label: {
                            show: true,
                            position: 'top',
                            textStyle: {
                              color: 'white'
                        }
                     }
                        
                    }
                },
            },
            {
                name:'搜索引擎',
                type:'line',
                stack: '总量',
                data:[82, 93, 90, 93, 100, 133, 320],
                itemStyle: {
                    normal: {
                        color: '#5ca3cc',
                        label: {
                            show: true,
                            position: 'top',
                            textStyle: {
                              color: 'white'
                        }
                     }
                        
                    }
                },
            }
        ]
    };
    var chart7 =echarts.init(document.getElementById("chart7"));
    chart7.setOption(option7);
    setInterval(function(){
        // $('#mb-overcome').css('width',($('.mb-long-hold').width()-40));
        $('#chart7').css('height',($('.chartBox1').height()))
        $('#chart7').css('width',($('.chartBox1').width()))
        chart7.resize();
    },200);
    $('#carousel1').carousel({
        el: {
            imgsContainer: '.carousel', // 图片容器 
            prevBtn: '.carousel-prev', // 上翻按钮 
            nextBtn: '.carousel-next', // 下翻按钮
            indexContainer: '.carousel-index', // 下标容器  
        },
        conf: {
            auto: true, //是否自动播放 true/false 默认:true 
            needIndexNum: true, //是否需要下标数字 true/false 默认:true 
            animateTiming: 1000, //动画时长(毫秒) 默认:1000 
            autoTiming: 1000, //自动播放间隔时间(毫秒) 默认:3000 
            direction: 'right', //自动播放方向 left/right 默认:right   
        }
    });
    
    
})